import Vue from "vue";
import VueRouter from "vue-router";

import App from './App';
import store from './store';
import router from './router';
import './styles/index.less';
import components from './components';

Vue.use(VueRouter);

Object.keys(components).forEach(key => {
    let name = components[key].name || key;
    console.log('注册组件：', name);
    Vue.component(name, components[key]);
});


new Vue({
    el: '#app',
    store: store,
    router: router,
    render: h => h(App),
});
